Repository navigation
Refactor extension - #30
Merged
Merged
Conversation
✅ Deploy Preview for elph ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Important
Substantial and well-structured refactor, but the new host ABI breaks one reachable path: an extension command invoked with no arguments fails on the host side — see the inline comment on host.rs.
Reviewed changes
- Replaced wasmtime + Component Model with wasmi core-Wasm interpreter and a JSON-in-linear-memory ABI (
abi.rs,host.rs, newui.rs, rewrittenregistry.rs). - New guest contract: exports
memory/elph_alloc/elph_dealloc/elph_init/elph_on_event/elph_execute_command/elph_execute_tool; importsregister_command/register_tool/subscribe/notify/confirm. - Manifest field renamed
component→wasm; guests targetwasm32-unknown-unknown, WASI rejected via a byte-scan heuristic; fuel-metered per call. - New
elph-extension-pdkguest helper crate and rewrittenext-helloexample; workspace exclude list extended; wasmi/wat deps, WIT world + bindings removed. - Harness integration:
bind_to_harnessregisters extension tools and wirestool_call/tool_result/before_agent_start/session_startevents. - Docs updated (new
docs/extensions.md, archive refreshes, CI notes) and CIrelease.ymlgains a zig-cc C-compiler wrapper for the musl target withRUSTC_WRAPPERdisabled for that step.
Metadata note: the release workflow's musl C/C++ wrapper and sccache-disable were not deeply exercised here — they only run in the release cross-build.
DeepSeek Flash | 𝕏
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Kind
Tested
Update
docs/in this PR if CLI, crate API, config, or user-visible behavior changed.